﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Motoball.screenmanager;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace Motoball.screens
{
    public class OptionsScreen : MenuScreen
    {/*
        PlayerColorScreen playerColorScreenOne;
        PlayerColorScreen playerColorScreenTwo;
        MaxScoreScreen maxScoreScreen;
        
        public OptionsScreen(ScreenManager screenManager, float finalDrawRadius, string screenName, MenuScreen parentScreen)
            : base(screenManager, finalDrawRadius, screenName, parentScreen)
        {
        }

        public override void LoadContent()
        {
            ContentManager content = screenManager.Content;
            AddItem(new MenuItem(content.Load<Texture2D>("Images\\menupaddle2_maxscore")));
            AddItem(new MenuItem(content.Load<Texture2D>("Images\\menupaddle2_colorplayer1")));
            AddItem(new MenuItem(content.Load<Texture2D>("Images\\menupaddle2_colorplayer2")));

            TopItem = 0;

            maxScoreScreen = new MaxScoreScreen(screenManager, FinalDrawRadius - 60.0f, 
                "maxScore", this);
            playerColorScreenOne = new PlayerColorScreen(screenManager, FinalDrawRadius - 60.0f, "colorp1", this, 1);
            playerColorScreenTwo = new PlayerColorScreen(screenManager, FinalDrawRadius - 60.0f, "colorp2", this, 2);
            
            maxScoreScreen.LoadContent();
            playerColorScreenOne.LoadContent();
            playerColorScreenTwo.LoadContent();
            playerColorScreenTwo.TopItem = 3;
            Reset();
        }

        public override void Draw()
        {
            base.Draw();
        }

        protected override void SelectEntry()
        {
            switch (TopItem)
            {
                //maxscore
                case 0:
                    EnterMaxScore();
                    break;
                    //color
                case 1:
                    EnterColorP1();
                    break;
                case 2:
                    EnterColorP2();
                    break;
                default:
                    break;
            }
        }

        private void EnterMaxScore()
        {
            maxScoreScreen.Reset();
            screenManager.AddScreen(maxScoreScreen);
            Active = false;
        }

        private void EnterColorP1()
        {
            playerColorScreenOne.Reset();
            screenManager.AddScreen(playerColorScreenOne);
            Active = false;
        }

        private void EnterColorP2()
        {
            playerColorScreenTwo.Reset();
            screenManager.AddScreen(playerColorScreenTwo);
            Active = false;
        }


        */
    }
}
